public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.creatNode();
        mySingleList.display();
        System.out.println(mySingleList.size());
        System.out.println(mySingleList.contains(12));
        //使用头插法与插入的顺序相反
        mySingleList.addFirst(666);
        mySingleList.addFirst(777);
        mySingleList.display();
      mySingleList.addIndex(2,5);
      mySingleList.display();
      mySingleList.addIndex(1,6666);
      mySingleList.display();
      mySingleList.remove(5);
      mySingleList.display();
      mySingleList.addLast(23);
      mySingleList.display();
      mySingleList.removeAllKey(23);
      mySingleList.display();
      mySingleList.remove(777);
      mySingleList.display();
    }
}
